package reflectx

import (
	"path"
	"reflect"
)

//go:force inline
func TypeFullName(p reflect.Type) string {
	p = IndirectType(p)
	return path.Join(p.PkgPath(), p.Name())
}

//go:force inline
func AnyTypeFullName(data any) string {
	p := reflect.Indirect(reflect.ValueOf(data)).Type()
	return TypeFullName(p)
}
